//-------------这个页面发送4个Ajax请求----------------

//----单独的设备类别
			$.ajax({
				type:"get",
				url:"http://192.168.60.164:8080/test/drop_down_box/equipment/category",
				async:true,
				success:function(info){					
					var dataArr = info.data;
					$.each(dataArr, function(index,value){
						$("#equipmentCategory").append("<option value="+value.id+">"+value.name+"</option>");
					});
				},
				error:function(){
					console.log('ajax获取失败');
				}
			});
// ---实验室 下拉菜单内容
			$.ajax({
				type:"get",
				url:"http://192.168.60.164:8080/test/drop/down/box/getResearchRoom",
				async:true,
				success:function(info){	
					var dataArr = info.data;
					$.each(dataArr, function(index,value){
						$("#reacherOffice").append("<option value="+value.id+">"+value.name+"</option>");
					});
				},
				error:function(){
					console.log('ajax获取失败');
				}
			});
//------存放场所 下拉内容
			$.ajax({
				type:"get",
				url:"http://192.168.60.164:8080/test/drop/down/box/getStoragePlace",
				async:true,
				success:function(info){				
					var dataArr = info.data;
					$.each(dataArr, function(index,value){
						$("#place").append("<option value="+value.id+">"+value.name+"</option>");
					});
				},
				error:function(){
					console.log('ajax获取失败');
				}
			});
//-------职工名 + 职工号的二级联动
				$.ajax({
					type:"get",
					url:"http://192.168.60.164:8080/test/linkage/user",
					async:true,
					dataType:"json",
					success: function(info){
						var infoData = info.data;						
						$.each(infoData,function(index,value){
							//给select里面添加职工名
							$("#userName").append("<option value="+index+">"+value.userName+"</option>")
						});
						$("#userName").bind('change',function(){
							$("#employeeNumber").empty();
							var indexValue = this.value;
							var userNoArr = infoData[this.value].userNo;
							for(var p in userNoArr )
							{
								$("#employeeNumber").append("<option value="+userNoArr[p]+">"+userNoArr[p]+"</option>");
							}
						});
					},
					error: function(){
						console.log('请求下拉框数据失败');
					}
				});